package com.hdkj.eduservice.client;


import com.hdkj.commonutils.ordervo.UcenterMemberOrder;
import com.hdkj.eduservice.client.impl.UcenterClientImpl;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;

import java.util.List;

@FeignClient(name = "service-ucenter",fallback = UcenterClientImpl.class) //调用的服务名称
@Component
public interface UcenterClient {
    //根据用户ids获取用户信息
    @PostMapping("/educenter/member/getUserInfoOrders/{ids}")
    public List<UcenterMemberOrder> getUserInfoOrders(@PathVariable List<String> ids) ;
}
